<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/dwsRework/Report_084"
          method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="Report_084List"/>
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Report_084Excel"/>
            <a href="${request.getContextPath()}/DwsRework/Report_084step?endTime=${params.endTime}&startTime=${params.startTime}"
               data-toggle="navtab" data-id="dialog-normal"
               data-options="{id:'table841', title:'返工折线图'}">返工折线图</a>
            <label>开始时间：</label>
            <input type="text" name="startTime" value="${startTime}" data-toggle="datepicker"
                   placeholder="FROM">&nbsp;&nbsp;&nbsp;&nbsp;
            <label>结束时间：</label>
            <input type="text" name="endTime" value="${endTime}" data-toggle="datepicker" placeholder="TO">&nbsp;&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <a type="button" class="btn btn-green"
               href="${request.getContextPath()}/dwsRework/Report_084?export=xls"
               data-toggle="doexport" data-confirm-msg="确定要导出吗？" data-icon="sign-out">导出</a>

        </div>
    </form>
</div>

<div style="margin:0px auto 0; width:96%;">
    <div class="row">

        <g:if test="${reworkphoto.size() > 0}">
            <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                <thead>
                <tr>
                    <th width="60">NO</th>
                    <th width="60">Total Rework</th>
                    <th width="60">Photo Stage Move</th>
                    <th width="60">Total Rework Ratio</th>
                </tr>
                </thead>
                <tbody>
                <g:each in="${reworkphoto}" status="i" var="photolist">
                    <tr>

                        <g:if test="${i == 0}"><td width="60">PCS By Wafer</td>
                        </g:if><g:elseif test="${i == 1}"><td width="60">PCS By Lot</td></g:elseif>

                        <td width="60">${photolist.TOTALWAFER}</td>
                        <td width="60">${photolist.PMWafer}</td>
                        <td width="60">${photolist.RADIOWAFER}%</td>

                    </tr>
                </g:each>
                </tbody>
            </table>
        </g:if>

    </div>

    <div class="row">&nbsp;</div>

    <div class="row">

        <g:if test="${Report_084List.size() > 0}">
            <g:render template="Report_084Excel"></g:render>
        </g:if>
        <g:else>
            <g:render template="../template/emptyPanel"/>
        </g:else>

    </div>

</div>


<g:render template="../template/pagination"/>
